import { createStore } from "vuex";

const store = createStore({
    state() {
        return {

            navList: [
                { id: 1, name: '首页', icon: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-78e17ca8=""><path fill="currentColor" d="M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"></path></svg>', path: '/home/index' },
                {
                    id: 2,
                    name: '预约管理',
                    icon: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-78e17ca8=""><path fill="currentColor" d="M704 192h160v736H160V192h160v64h384v-64zM288 512h448v-64H288v64zm0 256h448v-64H288v64zm96-576V96h256v96H384z"></path></svg>',
                    children: [
                        { id: '2 - 1', name: '预约挂号', path: '/home/bookedManage/booking' },
                        { id: '2 - 2', name: '预约核酸检查', path: '/home/bookedManage/nucleicAcidAppointment' },
                        { id: '2 - 3', name: '预约体检', path: '/home/bookedManage/appointmentExamination' },
                        { id: '2 - 4', name: '医生排班', path: '/home/bookedManage/workingSchedule' },

                    ]
                },
                {
                    id: 3,
                    name: '费用管理',
                    icon: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-78e17ca8=""><path fill="currentColor" d="M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160H688zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96zm-80-544 128 160H384l256-160z"></path></svg>',
                    children: [
                        { id: '3 - 1', name: '门诊消费记录', path: '/home/costdManage/RecordsConsumption' },
                        { id: '3 - 2', name: '门诊充值记录', path: '/home/oPCRecord' },
                        { id: '3 - 3', name: '住院消费记录', path: '/home/costdManage/outpatients' },
                        { id: '3 - 4', name: '住院充值记录', path: '9' },
                        { id: '3 - 5', name: '退款记录', path: '/home/pefund' },
                    ]
                },
                {
                    id: 4,
                    name: '医院信息',
                    icon: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-78e17ca8=""><path fill="currentColor" d="m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z"></path></svg>',
                    children: [
                        { id: '4 - 1', name: '医生管理', path: '6' },
                        { id: '4 - 2', name: '科室管理', path: '7' },
                        { id: '4 - 3', name: '体检套餐', path: '/home/hospitalInfoManage/medicalPlan' },

                    ]
                },
                {
                    id: 5,
                    name: '系统管理',
                    icon: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-78e17ca8=""><path fill="currentColor" d="M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z"></path></svg>',
                    children: [
                        { id: '5 - 1', name: '管理员管理', path: '6' },
                        { id: '3 - 2', name: '角色管理', path: '7' },
                        { id: '3 - 3', name: '职称管理', path: '8' },
                    ]
                }
            ]
        }
    },
    mutations: {
        increment(state) {
            state.count++
        }
    },
    actions: {

    },
    getters: {

    },
    modules: {

    }
})

export default store